package cn.ybk.system.mapper;

import cn.ybk.system.domain.Permission;
import cn.ybk.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface PermissionMapper extends BaseMapper<Permission> {

    Permission findBySn(String permissionSn);

    void addToPermissions(@Param("roleId") Long id, @Param("permissionsId") List<Long> permissions);

    void deleteByRole(Long id);

    List<String> findByLogininfo(Long id);
}
